/**
 * 0001
 *
 * @Author : Ruoyu Wang
 * @DateTime : 2024/8/12 22:43
 */

#include <iostream>
#include <vector>
#include "unordered_map"

using namespace std;

class Solution {
public:
    vector<int> twoSum(vector<int> &nums, int target) {
        unordered_map<int, int> map;
        for (int i = 0; i < nums.size(); ++i) {
            if (map.count(target - nums[i]))return {map[target - nums[i]], i};
            map[nums[i]] = i;
        }
        return {-1, -1};
    }
};

int main() {

    return 0;
}